package com.gnerv.pabu.basic.core.dto;

import com.gnerv.pabu.basic.core.entity.UserInfo;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

/**
 * 基础平台-用户详情 DTO
 *
 * @author zhang
 * @date 2019/11/30
 **/
@Data
@NoArgsConstructor
public class UserInfoDTO extends BaseDTO {

    private String userId;
    private String telephone;
    private String phone;
    private String email;
    private String address;
    private String gender;
    private String age;
    private String birthday;
    private String nickname;
    private String introduction;

    public UserInfo convert() {
        UserInfo info = new UserInfo();
        BeanUtils.copyProperties(this, info);
        return info;
    }
}
